public class hello {

    public static void main(String[] argv)
    {
        StringBuilder speak_to_builder = new StringBuilder();

        if (argv.length == 0) {
            speak_to_builder.append(", World");
        }
        else if (argv.length == 1) {
            speak_to_builder.append(", " + argv[0]);
        }
        else {
            for (int x=0; x < argv.length - 1; x+=1) {
                speak_to_builder.append(", " + argv[x]);
            }
            speak_to_builder.append(", and " + argv[argv.length - 1]);
        }

        System.out.println("Hello" + speak_to_builder + "!");
    }
}
